things
This commit is contained in:
parent
4d07e39eee
commit
8d0e09607a
5 changed files with 25 additions and 13 deletions
|
@ -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":[]}
|
||||||
|
|
|
@ -14,7 +14,7 @@ local function lsp_clients()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function langs()
|
local function langs()
|
||||||
local langs = {}
|
local l = {}
|
||||||
for _, client in pairs(vim.lsp.buf_get_clients(0)) do
|
for _, client in pairs(vim.lsp.buf_get_clients(0)) do
|
||||||
local out = nil
|
local out = nil
|
||||||
if client.name == "pyright" then
|
if client.name == "pyright" then
|
||||||
|
@ -23,12 +23,12 @@ local function langs()
|
||||||
out = "node " .. vim.fn.system({ "node", "--version" })
|
out = "node " .. vim.fn.system({ "node", "--version" })
|
||||||
end
|
end
|
||||||
if out ~= nil and out ~= "" then
|
if out ~= nil and out ~= "" then
|
||||||
langs[#langs + 1] = vim.trim(out)
|
l[#l + 1] = vim.trim(out)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
table.sort(langs)
|
table.sort(l)
|
||||||
return table.concat(langs, " • "), " "
|
return table.concat(l, " • "), " "
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -85,7 +85,6 @@ return {
|
||||||
null_ls.builtins.diagnostics.cspell.with({
|
null_ls.builtins.diagnostics.cspell.with({
|
||||||
extra_args = { "--config", "~/.config/nvim/cspell.json" },
|
extra_args = { "--config", "~/.config/nvim/cspell.json" },
|
||||||
diagnostics_postprocess = function(diagnostic)
|
diagnostics_postprocess = function(diagnostic)
|
||||||
-- vim.notify(vim.inspect(diagnostic))
|
|
||||||
diagnostic.message = diagnostic.user_data.misspelled
|
diagnostic.message = diagnostic.user_data.misspelled
|
||||||
diagnostic.severity = vim.diagnostic.severity.HINT
|
diagnostic.severity = vim.diagnostic.severity.HINT
|
||||||
end,
|
end,
|
||||||
|
@ -98,6 +97,17 @@ return {
|
||||||
config.update_in_insert = true
|
config.update_in_insert = true
|
||||||
config.debug = 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
|
return config
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
|
@ -53,13 +53,6 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
diagnostics = {
|
|
||||||
enable = true,
|
|
||||||
severity = {
|
|
||||||
min = vim.diagnostic.severity.ERROR,
|
|
||||||
max = vim.diagnostic.severity.ERROR,
|
|
||||||
}
|
|
||||||
},
|
|
||||||
filters = {
|
filters = {
|
||||||
dotfiles = false,
|
dotfiles = false,
|
||||||
git_ignored = false,
|
git_ignored = false,
|
||||||
|
|
|
@ -77,6 +77,15 @@ function M.spread(template)
|
||||||
end
|
end
|
||||||
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
|
-- From https://github.com/lukas-reineke/onedark.nvim/blob/master/lua/onedark.lua
|
||||||
function M.highlight(group, options)
|
function M.highlight(group, options)
|
||||||
local guifg = options.fg or "NONE"
|
local guifg = options.fg or "NONE"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue