Added purs

This commit is contained in:
Bryan Ramos 2023-05-28 22:39:26 -04:00
parent 4fff72b08d
commit 429cad4a5d
3 changed files with 23 additions and 31 deletions

View file

@ -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
@ -44,6 +46,10 @@ cmp.setup {
-- other configurations... -- other configurations...
} }
vim.cmd [[
au BufRead,BufNewFile *.purs set filetype=purescript
]]
local luasnip = require 'luasnip' local luasnip = require 'luasnip'
cmp.setup { cmp.setup {
@ -69,3 +75,4 @@ cmp.setup {
end, { 'i', 's' }), end, { 'i', 's' }),
}, },
} }

View file

@ -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 = {},
-- },
-- },
-- },
} }

View file

@ -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