mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
Added purs
This commit is contained in:
parent
4fff72b08d
commit
429cad4a5d
3 changed files with 23 additions and 31 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
local lsp = require('lsp-zero').preset({})
|
local lsp = require('lsp-zero').preset({})
|
||||||
|
|
||||||
lsp.on_attach(function(client, bufnr)
|
lsp.on_attach(function(client, bufnr)
|
||||||
lsp.default_keymaps({buffer = bufnr})
|
lsp.default_keymaps({ buffer = bufnr })
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- When you don't have mason.nvim installed
|
-- When you don't have mason.nvim installed
|
||||||
|
|
@ -21,7 +21,9 @@ lsp.setup_servers({
|
||||||
'jsonls',
|
'jsonls',
|
||||||
'diagnosticls',
|
'diagnosticls',
|
||||||
'lua_ls',
|
'lua_ls',
|
||||||
'marksman'
|
'marksman',
|
||||||
|
'purescriptls',
|
||||||
|
'tailwindcss'
|
||||||
})
|
})
|
||||||
|
|
||||||
-- (Optional) Configure lua language server for neovim
|
-- (Optional) Configure lua language server for neovim
|
||||||
|
|
@ -29,7 +31,7 @@ require('lspconfig').lua_ls.setup(lsp.nvim_lua_ls())
|
||||||
|
|
||||||
lsp.setup()
|
lsp.setup()
|
||||||
|
|
||||||
local cmp = require'cmp'
|
local cmp = require 'cmp'
|
||||||
cmp.setup {
|
cmp.setup {
|
||||||
snippet = {
|
snippet = {
|
||||||
expand = function(args)
|
expand = function(args)
|
||||||
|
|
@ -44,7 +46,11 @@ cmp.setup {
|
||||||
-- other configurations...
|
-- other configurations...
|
||||||
}
|
}
|
||||||
|
|
||||||
local luasnip = require'luasnip'
|
vim.cmd [[
|
||||||
|
au BufRead,BufNewFile *.purs set filetype=purescript
|
||||||
|
]]
|
||||||
|
|
||||||
|
local luasnip = require 'luasnip'
|
||||||
|
|
||||||
cmp.setup {
|
cmp.setup {
|
||||||
-- other configurations...
|
-- other configurations...
|
||||||
|
|
@ -69,3 +75,4 @@ cmp.setup {
|
||||||
end, { 'i', 's' }),
|
end, { 'i', 's' }),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,31 +29,10 @@ return {
|
||||||
{'hrsh7th/cmp-nvim-lsp'}, -- Required
|
{'hrsh7th/cmp-nvim-lsp'}, -- Required
|
||||||
{'L3MON4D3/LuaSnip'}, -- Required
|
{'L3MON4D3/LuaSnip'}, -- Required
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
|
||||||
|
|
||||||
|
{ 'raichoo/purescript-vim' },
|
||||||
|
{ 'vmchale/dhall-vim'},
|
||||||
|
|
||||||
-- {
|
|
||||||
-- "neovim/nvim-lspconfig",
|
|
||||||
-- ---@class PluginLspOpts
|
|
||||||
-- opts = {
|
|
||||||
-- ---@type lspconfig.options
|
|
||||||
-- servers = {
|
|
||||||
-- html = {},
|
|
||||||
-- cssls = {},
|
|
||||||
-- jsonls = {},
|
|
||||||
-- marksman = {},
|
|
||||||
-- tsserver = {},
|
|
||||||
-- tailwindcss = {},
|
|
||||||
-- volar = {},
|
|
||||||
--
|
|
||||||
-- lua_ls = {},
|
|
||||||
--
|
|
||||||
-- nil_ls = {},
|
|
||||||
-- pyright = {},
|
|
||||||
--
|
|
||||||
-- --hls = {},
|
|
||||||
-- rust_analyzer = {},
|
|
||||||
-- diagnosticls = {},
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -74,6 +74,10 @@
|
||||||
python3
|
python3
|
||||||
python311Packages.pip
|
python311Packages.pip
|
||||||
|
|
||||||
|
purescript
|
||||||
|
spago
|
||||||
|
nodePackages.parcel
|
||||||
|
|
||||||
# LSPs
|
# LSPs
|
||||||
nodePackages.vscode-langservers-extracted
|
nodePackages.vscode-langservers-extracted
|
||||||
nodePackages.prettier
|
nodePackages.prettier
|
||||||
|
|
@ -81,6 +85,8 @@
|
||||||
nodePackages.diagnostic-languageserver
|
nodePackages.diagnostic-languageserver
|
||||||
nodePackages.volar
|
nodePackages.volar
|
||||||
nodePackages.pyright
|
nodePackages.pyright
|
||||||
|
nodePackages.purescript-language-server
|
||||||
|
nodePackages."@tailwindcss/language-server"
|
||||||
haskell-language-server
|
haskell-language-server
|
||||||
nil
|
nil
|
||||||
marksman
|
marksman
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue