This commit is contained in:
RingOfStorms (Joshua Bell) 2023-12-27 23:36:25 -06:00
parent 4d07e39eee
commit 8d0e09607a
5 changed files with 25 additions and 13 deletions

View file

@ -1 +1 @@
{"words":["nvim","builtins","stylua","rustfmt","pendo","tanstack","ripgrep","Typeahead","overscan","autorun","mediatype","BIOINF","Transitioner","pkce","ilike","arrayify","arrayified","komodo","wezterm","gcloud","pbpaste","Hasher","semvers","upserted","dtos","Yeatts","Mahon","Beaubier","Taussing","chakra","langchain","openai","getattr","llms","docstore","kwargs","svgr","healthcheck","venv","virtualenv","ringofstorms","nestjs","oneshot","templating","tiktoken","pydantic","NCCN","clsx","reactflow","Convo","DSAB","pgvector","postprocess","stylelua","sqlx","genemichaels","williamboman","substr","findfile","Hammerspoon","eventtap","OSTYPE","sccache","binstall","elif","autofocus","colours","Resizer","esac","pannable","zoomable","elkjs","Arrayible","Falsey","xyflow","leftnav","topnav","nodrag","nowheel","janky","draghandle","Sandboxed","Dismissable","dashdraw","chrono","serde","rustls","schemars","webserver","concats","deepmerge","Customizer","reqwest","brotli","peekable","PDEPO","dotenv","taskserver","walkdir","uuidgen","tolower","nzzzv","tabprevious","tabnext","vsplit","tabclose","tabnew","Neotree","noequalalways","equalalways","bufdo","winnr","keymap","mapleader","maplocalleader","keymaps","setloclist","itertools","ollama","ainvoke","Floaterm","Diffview","nocombine","gitsigns","endfor","primereact","reactiveness","toggleable","unconnectable","Prereq","autocmd"],"version":"0.2","language":"en","flagWords":[]}
{"version":"0.2","language":"en","words":["nvim","builtins","stylua","rustfmt","pendo","tanstack","ripgrep","Typeahead","overscan","autorun","mediatype","BIOINF","Transitioner","pkce","ilike","arrayify","arrayified","komodo","wezterm","gcloud","pbpaste","Hasher","semvers","upserted","dtos","Yeatts","Mahon","Beaubier","Taussing","chakra","langchain","openai","getattr","llms","docstore","kwargs","svgr","healthcheck","venv","virtualenv","ringofstorms","nestjs","oneshot","templating","tiktoken","pydantic","NCCN","clsx","reactflow","Convo","DSAB","pgvector","postprocess","stylelua","sqlx","genemichaels","williamboman","substr","findfile","Hammerspoon","eventtap","OSTYPE","sccache","binstall","elif","autofocus","colours","Resizer","esac","pannable","zoomable","elkjs","Arrayible","Falsey","xyflow","leftnav","topnav","nodrag","nowheel","janky","draghandle","Sandboxed","Dismissable","dashdraw","chrono","serde","rustls","schemars","webserver","concats","deepmerge","Customizer","reqwest","brotli","peekable","PDEPO","dotenv","taskserver","walkdir","uuidgen","tolower","nzzzv","tabprevious","tabnext","vsplit","tabclose","tabnew","Neotree","noequalalways","equalalways","bufdo","winnr","keymap","mapleader","maplocalleader","keymaps","setloclist","itertools","ollama","ainvoke","Floaterm","Diffview","nocombine","gitsigns","endfor","primereact","reactiveness","toggleable","unconnectable","Prereq","autocmd","lualine","codedark","filesize","searchcount","selectioncount","statusline","winbar","newfile","pyright","bufnr"],"flagWords":[]}

View file

@ -14,7 +14,7 @@ local function lsp_clients()
end
local function langs()
local langs = {}
local l = {}
for _, client in pairs(vim.lsp.buf_get_clients(0)) do
local out = nil
if client.name == "pyright" then
@ -23,12 +23,12 @@ local function langs()
out = "node " .. vim.fn.system({ "node", "--version" })
end
if out ~= nil and out ~= "" then
langs[#langs + 1] = vim.trim(out)
l[#l + 1] = vim.trim(out)
end
end
table.sort(langs)
return table.concat(langs, ""), ""
table.sort(l)
return table.concat(l, ""), ""
end
return {

View file

@ -85,7 +85,6 @@ return {
null_ls.builtins.diagnostics.cspell.with({
extra_args = { "--config", "~/.config/nvim/cspell.json" },
diagnostics_postprocess = function(diagnostic)
-- vim.notify(vim.inspect(diagnostic))
diagnostic.message = diagnostic.user_data.misspelled
diagnostic.severity = vim.diagnostic.severity.HINT
end,
@ -98,6 +97,17 @@ return {
config.update_in_insert = true
config.debug = true
-- Don't run this on these buffer types
local ignored_filetypes = { "NvimTree", "terminal" }
config.on_attach = function(client, bufnr)
local ft = vim.api.nvim_buf_get_option(bufnr, "filetype")
if U.table_contains(ignored_filetypes, ft) then
if client.resolved_capabilities ~= nil and next(client.resolved_capabilities) ~= nil then
client.resolved_capabilities.code_action = false
end
end
end
return config
end,
},

View file

@ -53,13 +53,6 @@ return {
},
},
},
diagnostics = {
enable = true,
severity = {
min = vim.diagnostic.severity.ERROR,
max = vim.diagnostic.severity.ERROR,
}
},
filters = {
dotfiles = false,
git_ignored = false,

View file

@ -77,6 +77,15 @@ function M.spread(template)
end
end
function M.table_contains(table, element)
for _, value in pairs(table) do
if value == element then
return true
end
end
return false
end
-- From https://github.com/lukas-reineke/onedark.nvim/blob/master/lua/onedark.lua
function M.highlight(group, options)
local guifg = options.fg or "NONE"