comparison dot_config/nvim/init.lua @ 317:7d73e664f702

Add telescope for LSP navigation
author Zeger Van de Vannet <zegervdv@me.com>
date Thu, 17 Dec 2020 14:58:52 +0100
parents a1ed17cc354b
children 93b8df942a20
comparison
equal deleted inserted replaced
316:2665e0073dcc 317:7d73e664f702
107 return 107 return
108 end 108 end
109 if not vim.api.nvim_buf_get_option(bufnr, "modified") then 109 if not vim.api.nvim_buf_get_option(bufnr, "modified") then
110 local view = vim.fn.winsaveview() 110 local view = vim.fn.winsaveview()
111 vim.lsp.util.apply_text_edits(result, bufnr) 111 vim.lsp.util.apply_text_edits(result, bufnr)
112 -- Fix to reload Treesitter
113 vim.api.nvim_command("noautocmd edit")
112 vim.fn.winrestview(view) 114 vim.fn.winrestview(view)
113 -- Fix to reload Treesitter
114 vim.api.nvim_command("edit")
115 end 115 end
116 end 116 end
117 117
118 lsp.pyls.setup{ 118 lsp.pyls.setup{
119 cmd = {"pyls"}, 119 cmd = {"pyls"},