Compare commits

..

5 Commits

Author SHA1 Message Date
eb48ce27f5 install git conflict marker with keymaps 2024-03-01 13:42:38 +01:00
ca7c6260fc install additional tools 2024-03-01 13:42:23 +01:00
48f8fd251d clean up: auto format 2024-03-01 13:42:09 +01:00
afb45182b2 use cmake instead of make (windows) 2024-03-01 12:43:54 +01:00
e8213b12a2 better commenting 2024-03-01 11:52:43 +01:00
6 changed files with 81 additions and 61 deletions

View File

@ -0,0 +1,15 @@
-- Disable the default highlight group
vim.g.conflict_marker_highlight_group = ''
-- Include text after begin and end markers
vim.g.conflict_marker_begin = '^<<<<<<< .*$'
vim.g.conflict_marker_end = '^>>>>>>> .*$'
-- Highlight groups
vim.cmd 'highlight ConflictMarkerBegin guibg=#2f7366'
vim.cmd 'highlight ConflictMarkerOurs guibg=#2e5049'
vim.cmd 'highlight ConflictMarkerTheirs guibg=#344f69'
vim.cmd 'highlight ConflictMarkerEnd guibg=#2f628e'
vim.cmd 'highlight ConflictMarkerCommonAncestorsHunk guibg=#754a81'
return { 'rhysd/conflict-marker.vim' }

View File

@ -20,7 +20,7 @@ end
local check_external_reqs = function()
-- Basic utils: `git`, `make`, `unzip`
for _, exe in ipairs { 'git', 'make', 'unzip', 'rg' } do
for _, exe in ipairs { 'git', 'cmake', 'rg' } do
local is_executable = vim.fn.executable(exe) == 1
if is_executable then
vim.health.ok(string.format("Found executable: '%s'", exe))

View File

@ -10,10 +10,10 @@ return {
-- Build Step is needed for regex support in snippets
-- This step is not supported in many windows environments
-- Remove the below condition to re-enable on windows
if vim.fn.has 'win32' == 1 or vim.fn.executable 'make' == 0 then
if vim.fn.has 'win32' == 1 or vim.fn.executable 'cmake' == 0 then
return
end
return 'make install_jsregexp'
return 'cmake install_jsregexp'
end)(),
},
'saadparwaiz1/cmp_luasnip',

View File

@ -78,7 +78,7 @@ return {
-- Fuzzy find all the symbols in your current workspace
-- Similar to document symbols, except searches over your whole project.
map('<leader>ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[W]orkspace [S]ymbols')
-- Lesser used LSP functionality
-- Workspace functionality dependant on LSPs
map('<leader>wa', vim.lsp.buf.add_workspace_folder, '[W]orkspace [A]dd Folder')
map('<leader>wr', vim.lsp.buf.remove_workspace_folder, '[W]orkspace [R]emove Folder')
@ -136,6 +136,7 @@ return {
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local servers = {
rust_analyzer = {},
tailwindcss = {},
omnisharp = {},
tsserver = {},
pyright = {},
@ -184,6 +185,10 @@ return {
local ensure_installed = vim.tbl_keys(servers or {})
vim.list_extend(ensure_installed, {
'stylua', -- Used to format lua code
'eslint_d',
'prettier',
'prettierd',
'node-debug2-adapter',
})
require('mason-tool-installer').setup { ensure_installed = ensure_installed }

View File

@ -22,7 +22,7 @@ return {
-- `cond` is a condition used to determine whether this plugin should be
-- installed and loaded.
cond = function()
return vim.fn.executable 'make' == 1
return vim.fn.executable 'cmake' == 1
end,
},
{ 'nvim-telescope/telescope-ui-select.nvim' },