Merge branch 'master' of https://git.cscherr.de/PlexSheep/neovim-confs
This commit is contained in:
commit
a3c86ac0db
2 changed files with 15 additions and 19 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
local completion = require 'null-ls.builtins._meta.completion'
|
||||||
-- Brief aside: **What is LSP?**
|
-- Brief aside: **What is LSP?**
|
||||||
--
|
--
|
||||||
-- LSP is an initialism you've probably heard, but might not understand what it is.
|
-- LSP is an initialism you've probably heard, but might not understand what it is.
|
||||||
|
@ -135,6 +136,7 @@ local servers = {
|
||||||
},
|
},
|
||||||
on_attach = function(client, bufnr)
|
on_attach = function(client, bufnr)
|
||||||
vim.keymap.set('n', '<leader>tp', function()
|
vim.keymap.set('n', '<leader>tp', function()
|
||||||
|
print('pinning this file: ', vim.api.nvim_buf_get_name(0), 'bufnr: ', bufnr)
|
||||||
client:exec_cmd({
|
client:exec_cmd({
|
||||||
title = 'pin',
|
title = 'pin',
|
||||||
command = 'tinymist.pinMain',
|
command = 'tinymist.pinMain',
|
||||||
|
@ -152,7 +154,6 @@ local servers = {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
html = {},
|
html = {},
|
||||||
ts_ls = {},
|
|
||||||
cssls = {},
|
cssls = {},
|
||||||
ts_ls = {},
|
ts_ls = {},
|
||||||
clangd = {},
|
clangd = {},
|
||||||
|
@ -166,10 +167,7 @@ local servers = {
|
||||||
command = 'clippy',
|
command = 'clippy',
|
||||||
},
|
},
|
||||||
imports = {
|
imports = {
|
||||||
granularity = {
|
preferPrelude = true,
|
||||||
group = 'module',
|
|
||||||
},
|
|
||||||
prefix = 'self',
|
|
||||||
},
|
},
|
||||||
cargo = {
|
cargo = {
|
||||||
features = 'all',
|
features = 'all',
|
||||||
|
@ -180,6 +178,10 @@ local servers = {
|
||||||
procMacro = {
|
procMacro = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
|
assist = {
|
||||||
|
emitMustUse = true,
|
||||||
|
expressionFillDefault = true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -205,18 +207,12 @@ require('mason').setup()
|
||||||
-- You can add other tools here that you want Mason to install
|
-- You can add other tools here that you want Mason to install
|
||||||
-- for you, so that they are available from within Neovim.
|
-- for you, so that they are available from within Neovim.
|
||||||
local ensure_installed = vim.tbl_keys(servers or {})
|
local ensure_installed = vim.tbl_keys(servers or {})
|
||||||
vim.list_extend(ensure_installed, {
|
vim.list_extend(ensure_installed, {})
|
||||||
'stylua',
|
|
||||||
'typstyle',
|
|
||||||
'prettier',
|
|
||||||
'rust-analyzer',
|
|
||||||
'clangd',
|
|
||||||
})
|
|
||||||
|
|
||||||
require('mason-lspconfig').setup {
|
require('mason-lspconfig').setup {
|
||||||
ensure_installed = ensure_installed,
|
ensure_installed = ensure_installed,
|
||||||
automatic_installation = true,
|
automatic_installation = true,
|
||||||
automatic_enable = true,
|
automatic_enable = false,
|
||||||
}
|
}
|
||||||
|
|
||||||
-- some things work weird
|
-- some things work weird
|
||||||
|
|
|
@ -89,12 +89,12 @@ return {
|
||||||
-- `friendly-snippets` contains a variety of premade snippets.
|
-- `friendly-snippets` contains a variety of premade snippets.
|
||||||
-- See the README about individual language/framework/plugin snippets:
|
-- See the README about individual language/framework/plugin snippets:
|
||||||
-- https://github.com/rafamadriz/friendly-snippets
|
-- https://github.com/rafamadriz/friendly-snippets
|
||||||
-- {
|
{
|
||||||
-- 'rafamadriz/friendly-snippets',
|
'rafamadriz/friendly-snippets',
|
||||||
-- config = function()
|
config = function()
|
||||||
-- require('luasnip.loaders.from_vscode').lazy_load()
|
require('luasnip.loaders.from_vscode').lazy_load()
|
||||||
-- end,
|
end,
|
||||||
-- },
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'saadparwaiz1/cmp_luasnip',
|
'saadparwaiz1/cmp_luasnip',
|
||||||
|
|
Loading…
Add table
Reference in a new issue