diff options
author | Ahmed Khalf <[email protected]> | 2021-08-18 09:34:26 +0400 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-18 01:34:26 -0400 |
commit | b9b9c69615b469146e3cc75adcf9bd61047404eb (patch) | |
tree | e6b3ea906e1c1d2c6710deec6e16ae5f01799713 /lua/lsp/init.lua | |
parent | 21b621c95af592d0da46a29fe4dcc02e5d16c6eb (diff) |
[Refactor]: Remove vim-rooter and smart-cwd; then use project.nvim (#1315)
* Replace vim-rooter with project.nvim
* Implement stylua format
* Remove smart_cwd
* Implicitly update nvim-tree dir when project active
* Link datapath to cache
* Fix stylua
* Fix lint
* Fix telescope bug
* Fix telescope dependency
* Fix telescope once and for all
* Fix telescope once again
Diffstat (limited to 'lua/lsp/init.lua')
-rw-r--r-- | lua/lsp/init.lua | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lua/lsp/init.lua b/lua/lsp/init.lua index 920aceb3..1a6ceda3 100644 --- a/lua/lsp/init.lua +++ b/lua/lsp/init.lua @@ -55,14 +55,6 @@ local function add_lsp_buffer_keybindings(bufnr) wk.register(keys, { mode = "n", buffer = bufnr }) end -local function set_smart_cwd(client) - local proj_dir = client.config.root_dir - if lvim.lsp.smart_cwd and proj_dir ~= "/" then - vim.api.nvim_set_current_dir(proj_dir) - require("core.nvimtree").change_tree_dir(proj_dir) - end -end - function M.common_capabilities() local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities.textDocument.completion.completionItem.snippetSupport = true @@ -127,7 +119,6 @@ function M.common_on_attach(client, bufnr) end lsp_highlight_document(client) add_lsp_buffer_keybindings(bufnr) - set_smart_cwd(client) require("lsp.null-ls").setup(vim.bo.filetype) end |