@@ -135,42 +135,10 @@ M.activate = function()
135135end
136136
137137
138- local function set_keymaps ()
139- vim .api .nvim_buf_set_keymap (0 , ' n' , M .config .keymap .definition , " :lua require'otter'.ask_definition()<cr>" ,
140- { silent = true })
141- vim .api .nvim_buf_set_keymap (0 , ' n' , M .config .keymap .type_definition , " :lua require'otter'.ask_type_definition()<cr>" ,
142- { silent = true })
143- vim .api .nvim_buf_set_keymap (0 , ' n' , M .config .keymap .hover , " :lua require'otter'.ask_hover()<cr>" , { silent = true })
144- vim .api .nvim_buf_set_keymap (0 , ' n' , M .config .keymap .rename , " :lua require'otter'.ask_rename()<cr>" , { silent = true })
145- vim .api .nvim_buf_set_keymap (0 , ' n' , M .config .keymap .references , " :lua require'otter'.ask_references()<cr>" ,
146- { silent = true })
147- vim .api .nvim_buf_set_keymap (0 , ' n' , M .config .keymap .document_symbols ,
148- " :lua require'otter'.ask_document_symbols()<cr>" , { silent = true })
149- end
150-
151138-- setup
152139M .setup = function (opt )
153140 M .config = vim .tbl_deep_extend (' force' , M .defaultConfig , opt or {})
154141
155- vim .api .nvim_create_autocmd (" BufEnter" , {
156- pattern = ' *.qmd' ,
157- group = vim .api .nvim_create_augroup (' QuartoSetup' , {}),
158- desc = ' set up quarto-nvim keymaps and completion' ,
159- callback = function ()
160- if M .config .lspFeatures .enabled then
161- M .activate ()
162- set_keymaps ()
163- -- set the keymap again if a language server attaches
164- -- directly to this buffer
165- -- because it probably overwrites these in `on_attach`
166- vim .api .nvim_create_autocmd (" LspAttach" , {
167- buffer = vim .api .nvim_get_current_buf (),
168- callback = set_keymaps ,
169- })
170- end
171- end
172- })
173-
174142end
175143
176144local function concat (ls )
0 commit comments