diff options
| author | seth <[email protected]> | 2022-12-06 19:11:07 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2022-12-06 19:11:07 -0500 |
| commit | 0ba27d671d2e11747e695feaa546cd541ca6b7a8 (patch) | |
| tree | 12555b9adaefff6101c4408a483fa14f25676438 /.config/nvim/lua/getchoo/lsp/config/null_ls.lua | |
| parent | ad792b30ad097b906050aff806fb693ddb154051 (diff) | |
small refactor for neovim config
Diffstat (limited to '.config/nvim/lua/getchoo/lsp/config/null_ls.lua')
| -rw-r--r-- | .config/nvim/lua/getchoo/lsp/config/null_ls.lua | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/.config/nvim/lua/getchoo/lsp/config/null_ls.lua b/.config/nvim/lua/getchoo/lsp/config/null_ls.lua index 42cd30e..16b1b3c 100644 --- a/.config/nvim/lua/getchoo/lsp/config/null_ls.lua +++ b/.config/nvim/lua/getchoo/lsp/config/null_ls.lua @@ -1,9 +1,12 @@ +-- +-- config for null_ls +-- + local sources = require("getchoo.lsp.config.sources") local M = {} -- only use null-ls for formatting - -- for neovim >= 8 local lsp_formatting = function(bufnr) vim.lsp.buf.format({ @@ -22,8 +25,9 @@ local formatting_on_attach = function(client, bufnr) group = augroup, buffer = bufnr, callback = function() - -- local params = require("vim.lsp.util").make_formatting_params({}) - -- client.request("textDocument/formatting", params, nil, bufnr) + -- for neovim < 8 + ---- local params = require("vim.lsp.util").make_formatting_params({}) + ---- client.request("textDocument/formatting", params, nil, bufnr) lsp_formatting(bufnr) -- neovim >= 8 end, }) |
