Compare commits

..

11 Commits

Author SHA1 Message Date
Chris Patti f6d67b69c3
Merge pull request #387 from daanrongen/master 2023-08-06 14:04:28 -04:00
daan a4ec83a433
fix: missing comma 2023-08-06 16:27:05 +01:00
Chris Patti 5a59fb894c
Merge pull request #384 from pbnj/fix/telescope-fzf-native-as-dependency 2023-08-06 09:51:44 -04:00
Peter Benjamin 8ee4d24b36
fix: fix brackets 2023-08-05 17:31:01 -07:00
Peter Benjamin b06980a8da
fix(init): turn telescope-fzf-native into a dependecy 2023-08-05 17:28:18 -07:00
Chris Patti 9dcf923f60
Merge pull request #380 from eltociear/patch-1 2023-07-30 15:52:11 -04:00
Ikko Eltociear Ashimine c2fb482ec1
Fix typo in init.lua
releated -> related
2023-07-31 02:46:27 +09:00
Chris Patti 3dc1c1c4c2
Merge pull request #376 from Numkil/patch-bug
Fix bug when server not explicitely defined in configuration but installed
2023-07-25 12:32:09 -04:00
Merel Jossart 734cc4e94a Fix bug when server not explicitely defined in configuration but installed 2023-07-25 18:30:47 +02:00
Chris Patti ea028fe0b5
Merge pull request #373 from Numkil/patch-1
Allow easier overriding of default filetypes for LSP
2023-07-24 16:01:36 -04:00
Numkil 29aa5bf42d setup more language servers i use + allow customizing filetypes 2023-07-24 21:57:36 +02:00
1 changed files with 24 additions and 14 deletions

View File

@ -110,7 +110,7 @@ require('lazy').setup({
-- Useful plugin to show you pending keybinds.
{ 'folke/which-key.nvim', opts = {} },
{
-- Adds git releated signs to the gutter, as well as utilities for managing changes
-- Adds git related signs to the gutter, as well as utilities for managing changes
'lewis6991/gitsigns.nvim',
opts = {
-- See `:help gitsigns.txt`
@ -167,19 +167,24 @@ require('lazy').setup({
{ 'numToStr/Comment.nvim', opts = {} },
-- Fuzzy Finder (files, lsp, etc)
{ 'nvim-telescope/telescope.nvim', branch = '0.1.x', dependencies = { 'nvim-lua/plenary.nvim' } },
-- Fuzzy Finder Algorithm which requires local dependencies to be built.
-- Only load if `make` is available. Make sure you have the system
-- requirements installed.
{
'nvim-telescope/telescope-fzf-native.nvim',
-- NOTE: If you are having trouble with this installation,
-- refer to the README for telescope-fzf-native for more instructions.
build = 'make',
cond = function()
return vim.fn.executable 'make' == 1
end,
'nvim-telescope/telescope.nvim',
branch = '0.1.x',
dependencies = {
'nvim-lua/plenary.nvim',
-- Fuzzy Finder Algorithm which requires local dependencies to be built.
-- Only load if `make` is available. Make sure you have the system
-- requirements installed.
{
'nvim-telescope/telescope-fzf-native.nvim',
-- NOTE: If you are having trouble with this installation,
-- refer to the README for telescope-fzf-native for more instructions.
build = 'make',
cond = function()
return vim.fn.executable 'make' == 1
end,
},
},
},
{
@ -424,12 +429,16 @@ end
--
-- Add any additional override configuration in the following tables. They will be passed to
-- the `settings` field of the server config. You must look up that documentation yourself.
--
-- If you want to override the default filetypes that your language server will attach to you can
-- define the property 'filetypes' to the map in question.
local servers = {
-- clangd = {},
-- gopls = {},
-- pyright = {},
-- rust_analyzer = {},
-- tsserver = {},
-- html = { filetypes = { 'html', 'twig', 'hbs'} },
lua_ls = {
Lua = {
@ -459,8 +468,9 @@ mason_lspconfig.setup_handlers {
capabilities = capabilities,
on_attach = on_attach,
settings = servers[server_name],
filetypes = (servers[server_name] or {}).filetypes,
}
end,
end
}
-- [[ Configure nvim-cmp ]]