some fixes
This commit is contained in:
parent
e33c2e623b
commit
78566240e0
|
|
@ -0,0 +1,2 @@
|
||||||
|
require('conftool').set({'tabstop', 2}, {'shiftwidth', 2}, 'expandtab')
|
||||||
|
vim.cmd 'IndentGuidesDisable'
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
require('conftool').set({'tabstop', 2},{'shiftwidth', 2})
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
require('conftool').set({'tabstop', 2},{'shiftwidth', 2})
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
local ct = require('conftool')
|
||||||
|
|
||||||
|
ct.set({'tabstop', 4}, {'shiftwidth', 4}, 'expandtab')
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
javascript.lua
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
typescript.lua
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
javascript.lua
|
||||||
|
|
@ -1,9 +1,12 @@
|
||||||
{
|
{
|
||||||
"aerial.nvim": { "branch": "master", "commit": "9ebc13583cff447f5493a63e99dfca526b3c3088" },
|
"Ollama-Copilot": { "branch": "main", "commit": "8004f8b9e7c4e45decce1a47c7daa33fa0549724" },
|
||||||
|
"aerial.nvim": { "branch": "master", "commit": "44684bf429dc40e97a6d00ffa09043ac3f692186" },
|
||||||
"closetag.vim": { "branch": "master", "commit": "d0a562f8bdb107a50595aefe53b1a690460c3822" },
|
"closetag.vim": { "branch": "master", "commit": "d0a562f8bdb107a50595aefe53b1a690460c3822" },
|
||||||
|
"cmp-nvim-lsp": { "branch": "main", "commit": "a8912b88ce488f411177fc8aed358b04dc246d7b" },
|
||||||
"coq.artifacts": { "branch": "artifacts", "commit": "ef5f21d638ccc456cfa5b8d0ab37093cefe48c8b" },
|
"coq.artifacts": { "branch": "artifacts", "commit": "ef5f21d638ccc456cfa5b8d0ab37093cefe48c8b" },
|
||||||
"coq_nvim": { "branch": "coq", "commit": "d83bc18d044cfcd65e91dc49740a353546bc143b" },
|
"coq_nvim": { "branch": "coq", "commit": "d83bc18d044cfcd65e91dc49740a353546bc143b" },
|
||||||
"delimitMate": { "branch": "master", "commit": "becbd2d353a2366171852387288ebb4b33a02487" },
|
"delimitMate": { "branch": "master", "commit": "becbd2d353a2366171852387288ebb4b33a02487" },
|
||||||
|
"flutter-tools.nvim": { "branch": "main", "commit": "6faf2c70bd56f1fe78620591a2bb73f4dc6f4870" },
|
||||||
"goyo.vim": { "branch": "master", "commit": "fa0263d456dd43f5926484d1c4c7022dfcb21ba9" },
|
"goyo.vim": { "branch": "master", "commit": "fa0263d456dd43f5926484d1c4c7022dfcb21ba9" },
|
||||||
"hererocks": { "branch": "master", "commit": "c9c5444dea1e07e005484014a8231aa667be30b6" },
|
"hererocks": { "branch": "master", "commit": "c9c5444dea1e07e005484014a8231aa667be30b6" },
|
||||||
"kotlin-vim": { "branch": "master", "commit": "53fe045906df8eeb07cb77b078fc93acda6c90b8" },
|
"kotlin-vim": { "branch": "master", "commit": "53fe045906df8eeb07cb77b078fc93acda6c90b8" },
|
||||||
|
|
@ -11,9 +14,10 @@
|
||||||
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
|
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
|
||||||
|
"nvim-cmp": { "branch": "main", "commit": "059e89495b3ec09395262f16b1ad441a38081d04" },
|
||||||
"nvim-lsp-basics": { "branch": "main", "commit": "632714bd3ab355eb6e725b5a78cd8730f12d14d2" },
|
"nvim-lsp-basics": { "branch": "main", "commit": "632714bd3ab355eb6e725b5a78cd8730f12d14d2" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "200280dab91a7df2ca42fd2ab3cb4c5fab056666" },
|
"nvim-lspconfig": { "branch": "master", "commit": "ff6471d4f837354d8257dfa326b031dd8858b16e" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "e329e94a6a0a5ccf6ec8bfec1d10faf5eaae665f" },
|
"nvim-treesitter": { "branch": "master", "commit": "4b390e1e46ca2e6220f14641cb840bbf9ad5446f" },
|
||||||
"onedark.nvim": { "branch": "master", "commit": "67a74c275d1116d575ab25485d1bfa6b2a9c38a6" },
|
"onedark.nvim": { "branch": "master", "commit": "67a74c275d1116d575ab25485d1bfa6b2a9c38a6" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
|
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
|
||||||
"rainbow-delimiters.nvim": { "branch": "master", "commit": "de39919a57e1a40a4c7dc5bae0de276f9c616ef3" },
|
"rainbow-delimiters.nvim": { "branch": "master", "commit": "de39919a57e1a40a4c7dc5bae0de276f9c616ef3" },
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ local defs = require('defaults')
|
||||||
ct.augroup('templates',
|
ct.augroup('templates',
|
||||||
{'BufNewFile', '*.c', '0r', defs.template_dir .. '/c_stdio.c'},
|
{'BufNewFile', '*.c', '0r', defs.template_dir .. '/c_stdio.c'},
|
||||||
{'BufNewFile', '*.cpp', '0r', defs.template_dir .. '/cpp_iostream.cpp'},
|
{'BufNewFile', '*.cpp', '0r', defs.template_dir .. '/cpp_iostream.cpp'},
|
||||||
|
{'BufNewFile', '*.desktop', '0r', defs.template_dir .. '/desktop'},
|
||||||
{'BufNewFile', '*.go', '0r', defs.template_dir .. '/go.go'},
|
{'BufNewFile', '*.go', '0r', defs.template_dir .. '/go.go'},
|
||||||
{'BufNewFile', '*.html', '0r', defs.template_dir .. '/html.html'},
|
{'BufNewFile', '*.html', '0r', defs.template_dir .. '/html-index.html'},
|
||||||
{'BufNewFile', '*.html', '0r', defs.template_dir .. '/html.html'},
|
|
||||||
{'BufNewFile', '*.py', '0r', defs.template_dir .. '/py.py'},
|
{'BufNewFile', '*.py', '0r', defs.template_dir .. '/py.py'},
|
||||||
{'BufNewFile', '*.sh', '0r', defs.template_dir .. '/sh.sh'}
|
{'BufNewFile', '*.sh', '0r', defs.template_dir .. '/sh.sh'}
|
||||||
)
|
)
|
||||||
|
|
@ -19,16 +19,19 @@ ct.augroup('templates',
|
||||||
--
|
--
|
||||||
-- FileType based Settings
|
-- FileType based Settings
|
||||||
--
|
--
|
||||||
ct.augroup('filetypeSettings',
|
|
||||||
{'FileType', 'python', 'setlocal', 'tabstop=4 shiftwidth=4 expandtab'},
|
-- moved to after/ftplugin
|
||||||
{'FileType', 'html', 'setlocal', 'tabstop=2 shiftwidth=2'},
|
-- ct.augroup('filetypeSettings',
|
||||||
{'FileType', 'javascript', 'setlocal', 'tabstop=2 shiftwidth=2'},
|
-- {'FileType', 'python', 'setlocal', 'tabstop=4 shiftwidth=4 expandtab'},
|
||||||
{'FileType', 'typescript', 'setlocal', 'tabstop=2 shiftwidth=2'},
|
-- {'FileType', 'dart', 'setlocal', 'tabstop=2 shiftwidth=2 expandtab'},
|
||||||
{'FileType', 'typescriptreact','setlocal', 'tabstop=2 shiftwidth=2'},
|
-- {'FileType', 'html', 'setlocal', 'tabstop=2 shiftwidth=2'},
|
||||||
{'FileType', 'vue', 'setlocal', 'tabstop=2 shiftwidth=2'}
|
-- {'FileType', 'javascript', 'setlocal', 'tabstop=2 shiftwidth=2'},
|
||||||
)
|
-- {'FileType', 'typescript', 'setlocal', 'tabstop=2 shiftwidth=2'},
|
||||||
|
-- {'FileType', 'typescriptreact','setlocal', 'tabstop=2 shiftwidth=2'},
|
||||||
|
-- {'FileType', 'vue', 'setlocal', 'tabstop=2 shiftwidth=2'}
|
||||||
|
-- )
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Misc.
|
-- Misc.
|
||||||
--
|
--
|
||||||
vim.cmd 'autocmd BufWritePost *.go,*.py,*.js,*.ts,*tsx,*.tex LspFormat' -- run lspformat when saving in go
|
vim.cmd 'autocmd BufWritePost *.go,*.py,*.js,*.ts,*tsx,*.tex LspFormat' -- run lspformat when saving
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ local ct = require('conftool')
|
||||||
--
|
--
|
||||||
-- Encoding
|
-- Encoding
|
||||||
--
|
--
|
||||||
ct.set({'encoding', 'utf-8'}, {'fileencoding', 'utf-8'})
|
-- ct.set({'encoding', 'utf-8'}, {'fileencoding', 'utf-8'})
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Search
|
-- Search
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,9 @@ return {
|
||||||
"bash",
|
"bash",
|
||||||
"bibtex",
|
"bibtex",
|
||||||
"c",
|
"c",
|
||||||
|
"cs",
|
||||||
"cpp",
|
"cpp",
|
||||||
"css",
|
"cs",
|
||||||
"go",
|
"go",
|
||||||
"html",
|
"html",
|
||||||
"http",
|
"http",
|
||||||
|
|
@ -42,12 +43,12 @@ return {
|
||||||
dependencies = { 'ms-jpq/coq.artifacts' },
|
dependencies = { 'ms-jpq/coq.artifacts' },
|
||||||
branch = 'coq',
|
branch = 'coq',
|
||||||
build = ':COQdeps',
|
build = ':COQdeps',
|
||||||
|
event = { "VimEnter" },
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd([[autocmd VimEnter * COQnow -s]])
|
vim.cmd([[autocmd VimEnter * COQnow -s]])
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
||||||
--
|
|
||||||
-- Language Configurations
|
-- Language Configurations
|
||||||
--
|
--
|
||||||
{ 'ap/vim-css-color', lazy = false },
|
{ 'ap/vim-css-color', lazy = false },
|
||||||
|
|
@ -63,6 +64,21 @@ return {
|
||||||
},
|
},
|
||||||
|
|
||||||
{ 'bellinitte/uxntal.vim', lazy = false },
|
{ 'bellinitte/uxntal.vim', lazy = false },
|
||||||
|
{
|
||||||
|
'nvim-flutter/flutter-tools.nvim',
|
||||||
|
ft = 'dart',
|
||||||
|
dependencies = {
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
'nanotee/nvim-lsp-basics',
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
lsp = {
|
||||||
|
color = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Language Server
|
-- Language Server
|
||||||
|
|
@ -108,11 +124,56 @@ return {
|
||||||
vim.diagnostic.config({ virtual_text = false })
|
vim.diagnostic.config({ virtual_text = false })
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'hrsh7th/cmp-nvim-lsp',
|
||||||
|
dependencies = {
|
||||||
|
'hrsh7th/nvim-cmp',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'jacob411/Ollama-Copilot',
|
||||||
|
dependencies = {
|
||||||
|
'hrsh7th/cmp-nvim-lsp',
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
model_name = "qwen2.5-coder:14b",
|
||||||
|
stream_suggestion = false,
|
||||||
|
python_command = "python3",
|
||||||
|
filetypes = {
|
||||||
|
"bash",
|
||||||
|
"c",
|
||||||
|
"cpp",
|
||||||
|
"cs",
|
||||||
|
"dart",
|
||||||
|
"go",
|
||||||
|
"html",
|
||||||
|
"javascript",
|
||||||
|
"javascriptreact",
|
||||||
|
"json",
|
||||||
|
"lua",
|
||||||
|
"python",
|
||||||
|
"tex",
|
||||||
|
"typescript",
|
||||||
|
"typescriptreact",
|
||||||
|
},
|
||||||
|
ollama_model_opts = {
|
||||||
|
num_predict = 40,
|
||||||
|
temperature = 0.1,
|
||||||
|
},
|
||||||
|
keymaps = {
|
||||||
|
suggestion = '<leader>os',
|
||||||
|
reject = '<leader>or',
|
||||||
|
insert_accept = '<Leader><Tab>',
|
||||||
|
},
|
||||||
|
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'williamboman/mason-lspconfig.nvim',
|
'williamboman/mason-lspconfig.nvim',
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'ms-jpq/coq_nvim',
|
'ms-jpq/coq_nvim',
|
||||||
'nanotee/nvim-lsp-basics',
|
'nanotee/nvim-lsp-basics',
|
||||||
|
'jacob411/Ollama-Copilot',
|
||||||
'neovim/nvim-lspconfig',
|
'neovim/nvim-lspconfig',
|
||||||
'stevearc/aerial.nvim',
|
'stevearc/aerial.nvim',
|
||||||
'williamboman/mason.nvim',
|
'williamboman/mason.nvim',
|
||||||
|
|
@ -135,6 +196,7 @@ return {
|
||||||
"bash",
|
"bash",
|
||||||
"c",
|
"c",
|
||||||
"cpp",
|
"cpp",
|
||||||
|
"cs",
|
||||||
"dart",
|
"dart",
|
||||||
"go",
|
"go",
|
||||||
"html",
|
"html",
|
||||||
|
|
@ -169,26 +231,14 @@ return {
|
||||||
-- Show code diagnostics in a separate buffer window
|
-- Show code diagnostics in a separate buffer window
|
||||||
{
|
{
|
||||||
'folke/trouble.nvim',
|
'folke/trouble.nvim',
|
||||||
opts = {
|
opts = {},
|
||||||
height = 6,
|
|
||||||
icons = false,
|
|
||||||
fold_open = "v",
|
|
||||||
fold_closed = ">",
|
|
||||||
signs = {
|
|
||||||
error = "E:",
|
|
||||||
warning = "W:",
|
|
||||||
hint = "H:",
|
|
||||||
information = "I:"
|
|
||||||
},
|
|
||||||
use_diagnostic_signs = false
|
|
||||||
},
|
|
||||||
|
|
||||||
cmd = {
|
cmd = {
|
||||||
"TroubleToggle",
|
"Trouble",
|
||||||
},
|
},
|
||||||
|
|
||||||
keys = {
|
keys = {
|
||||||
{'<Leader>t', ':TroubleToggle<CR>'},
|
{'<Leader>t', ':Trouble diagnostics toggle<CR>'},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
--
|
--
|
||||||
|
|
@ -220,6 +270,7 @@ return {
|
||||||
-- Open request results in a horizontal split
|
-- Open request results in a horizontal split
|
||||||
result_split_horizontal = true,
|
result_split_horizontal = true,
|
||||||
-- Keep the http file buffer above|left when split horizontal|vertical
|
-- Keep the http file buffer above|left when split horizontal|vertical
|
||||||
|
--
|
||||||
result_split_in_place = true,
|
result_split_in_place = true,
|
||||||
result = {
|
result = {
|
||||||
show_curl_command = false,
|
show_curl_command = false,
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ return {
|
||||||
{
|
{
|
||||||
'nathanaelkane/vim-indent-guides',
|
'nathanaelkane/vim-indent-guides',
|
||||||
lazy = false,
|
lazy = false,
|
||||||
setup = function()
|
init = function()
|
||||||
vim.g.indent_guides_guide_size = 1
|
vim.g.indent_guides_guide_size = 1
|
||||||
vim.g.indent_guides_tab_guides = 0
|
vim.g.indent_guides_tab_guides = 0
|
||||||
vim.g.indent_guides_start_level = 2
|
vim.g.indent_guides_start_level = 2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue